#ifndef  __ULTRASOINC_H__
#define	 __ULTRASOINC_H__


#include "stm32f4xx.h"
<<<<<<< HEAD

=======
typedef struct
{
	GPIO_TypeDef* GPIOi;
	GPIO_TypeDef* GPIOO;
	uint16_t GPIOPinIn;
	uint16_t GPIOPinOut;
	
	uint16_t NowDistance;
}DISTS;
extern DISTS DistDetector1;
>>>>>>> 056322d78e3b3be123cc3a623eecfe6b3017561c
void ultrasonic_init(void);
void ultrasonic_trig(void);
//精确度为1/1M
uint32_t ultrasonic_get(void);
<<<<<<< HEAD
=======
void TIM6_Init(uint32_t arr,uint32_t psc);
void ultrasonic_init2(GPIO_TypeDef* GPIOi,uint16_t GPIOPinIn,GPIO_TypeDef* GPIOO,uint16_t GPIOPinOut);
uint16_t Distance_Get(DISTS DistDetector);
>>>>>>> 056322d78e3b3be123cc3a623eecfe6b3017561c
#endif
